// function getTotal(one: number, two: number) {
//     return one + two +'';
//   }
  
//   const total: number = getTotal(1, 2);



// function sayHello(): void {
//     console.log("hello world");
 
//   }


//   var a =sayHello()
//   console.log(a)

 


// function add({ one, two }) {
//     return one + two;
//   }
  
//   const total = add({ one: 1, two: 2 });

//   console.log('total',total)




//   function add({ one: number, two: number }) {
//     return one + two;
//   }
  
//   const total = add({ one: 1, two: 2 });


function add({ one, two }: { one: number, two: number }): number {
 
    return one + two+1111;
   }
   
   const three = add({ one: 1, two: 2 });


   function getNumber({ one }: { one: number }): number {
    return one;
  }
  
  const one = getNumber({ one: 1 });